<template>
    <!-- 组件的结构 -->
    <div class="app">
        <CategoryTest title="美食">
            <img src="https://s3.ax1x.com/2021/01/16/srJlq0.jpg" alt="">
        </CategoryTest>
        <CategoryTest title="游戏">
            <ul>
            <li v-for="(item,index) in games" :key="index">{{item}}</li>
            </ul>
        </CategoryTest>
        <CategoryTest title="电影">
            <video src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" controls></video>
        </CategoryTest>
    </div>  
</template>

<script>
    import CategoryTest from './components/Category-test.vue';
    export default{
    name: "App",
    data() {
        return {
            foods:['火锅','烧烤','小龙虾','牛排'],
            games:['红色警戒','穿越火线','英雄联盟','qq飞车'],
            films:['《黑马》','《尚硅谷》','《环太平洋》','《战狼》']
        }
    },
    components: { CategoryTest }
}
</script>

<style scoped>
    .app{
        display: flex;
        justify-content: space-around;
    }
    img{
        width: 100%;
   }
   video{
    width: 100%;
   }
</style>